Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Override Notification Option to Weather Module #3178

Merged

Conversation

NolanKingdon
Copy link
Contributor

Fixes #3126

Added the option allowOverrideNotification to weather.js. This allows the module to receive the CURRENT_WEATHER_OVERRIDE notification. The expected payload for this notification is a full/partial weatherObject that is used to supplement/replace the existing weatherObject returned by whichever weather provider is in use.

No visual changes.

First time contributing - let me know if I've missed something 🙂

@codecov-commenter
Copy link

codecov-commenter commented Sep 3, 2023

Codecov Report

Merging #3178 (d775c46) into develop (9d49196) will decrease coverage by 0.19%.
The diff coverage is 0.00%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

@@             Coverage Diff             @@
##           develop    #3178      +/-   ##
===========================================
- Coverage    26.15%   25.97%   -0.19%     
===========================================
  Files           53       54       +1     
  Lines        11502    11621     +119     
===========================================
+ Hits          3008     3018      +10     
- Misses        8494     8603     +109     
Files Changed Coverage Δ
...dules/default/weather/providers/overrideWrapper.js 0.00% <0.00%> (ø)
modules/default/weather/weather.js 0.00% <0.00%> (ø)
modules/default/weather/weatherprovider.js 0.00% <0.00%> (ø)

... and 2 files with indirect coverage changes

📢 Have feedback on the report? Share it here.

@rejas
Copy link
Collaborator

rejas commented Sep 7, 2023

Could you check the jsdoc warnings here: https://github.com/MichMich/MagicMirror/actions/runs/6105958927?pr=3178 @NolanKingdon ?

@rejas
Copy link
Collaborator

rejas commented Sep 8, 2023

Thx for the work @NolanKingdon will merge it now. Could you also provide a PR to update the docs in the https://github.com/MichMich/MagicMirror-Documentation/ repo?

@rejas rejas merged commit 5cbdd28 into MagicMirrorOrg:develop Sep 8, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants